/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package prueba1.seres;

/**
 *
 * @author Eddy
 */
public class Marciano extends Guerrero {

    private static int total = 0;

    private String soy;

    public static int getTotal() {

        return total;
    }

    public void recibeDisparo(int i) {
        if (vivo && blanco == i) {
            vivo = false;
            total--;
            System.out.println(soy + "Muerto por disparo n°" + 1);
        }
    }

    public Marciano(String soy) {
        super(soy);
        this.soy = soy;
        total++;
    }
}
